/*
package com.diana.controller;

import com.diana.entity.ScheduleJob;
import com.diana.service.ScheduleJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

*/
/**
 * <p>
 * 定时任务 前端控制器
 * </p>
 *
 * @author anzhi
 * @since 2019-11-11
 *//*

@RestController
@RequestMapping("/scheduleJob")
public class ScheduleJobController {

    @Autowired
    private ScheduleJobService scheduleJobService;

    @RequestMapping("/add")
    public String add(@RequestBody ScheduleJob scheduleJob){
        return scheduleJobService.add(scheduleJob);
    }

    @RequestMapping("/update")
    public String update(@RequestBody ScheduleJob scheduleJob){
        return scheduleJobService.update(scheduleJob);
    }

    @RequestMapping("/getList")
    public String getList(@RequestBody Map map){
        return scheduleJobService.getList(map);
    }

    @RequestMapping("/run")
    public String run(@RequestParam("jobId") long jobId){
        return scheduleJobService.run(jobId);
    }

    @RequestMapping("/deleteJob")
    public String deleteJob(@RequestParam("jobId") long jobId){
        return scheduleJobService.deleteJob(jobId);
    }

    @RequestMapping("/pauseJob")
    public String pauseJob(@RequestParam("jobId") long jobId){
        return scheduleJobService.pauseJob(jobId);
    }

    @RequestMapping("/resumeJob")
    public String resumeJob(@RequestParam("jobId") long jobId){
        return scheduleJobService.resumeJob(jobId);
    }

}

*/
